package com.sh.learn.manning.springinaction.chapter01.aop;

import org.apache.log4j.Logger;
import com.sh.learn.manning.springinaction.chapter01.di.Knight;

public class Minstrel {
	private static final Logger SONG = Logger.getLogger(Minstrel.class);

	public Minstrel() {
	}

	public void singBefore(Knight knight) {
		System.out.println("Fa la la; Sir " + knight.getName() + " is so brave!");
//		SONG.info("Fa la la; Sir " + knight.getName() + " is so brave!");
	}

	public void singAfter(Knight knight) {
		System.out.println("Tee-hee-he; Sir " + knight.getName() + " did embark on a quest!");
//		SONG.info("Tee-hee-he; Sir " + knight.getName() + " did embark on a quest!");
	}
}
